#include "ChangeHourlyTransaction.h"
#include "HourlyClassification.h"
#include "WeeklySchedule.h"

ChangeHourlyTransaction::ChangeHourlyTransaction(int empId, double rate)
    : ChangeClassificationTransaction(empId), itsRate(rate) 
{}

PaymentClassification* ChangeHourlyTransaction::MakeClassification()
{
    return new HourlyClassification(itsRate);
}

PaymentSchedule* ChangeHourlyTransaction::MakeSchedule()
{
    return new WeeklySchedule();
}